@model Web.Models.SpUser

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>SpUser</legend>

    <div class="display-label">Email</div>
    <div class="display-field">@Model.Email</div>

    <div class="display-label">Password</div>
    <div class="display-field">@Model.Password</div>

    <div class="display-label">Detail</div>
    <div class="display-field">@(Model.Detail == null ? "None" : Model.Detail.Name)</div>

    <div class="display-label">Tickets</div>
    <div class="display-field">@(Model.Tickets == null ? "None" : Model.Tickets.Count.ToString())</div>

    <div class="display-label">Company</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Company).ToString()</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.SpUserId }) |
    @Html.ActionLink("Back to List", "Index")
</p>


